import { GSprite } from "../../../../../com/mui/controls/GSprite";
import { ObjCreate } from "../ObjCreate";
import { ImagesConst } from "../../../resource/ImagesConst";
import { GlobalStyle } from "../../../../common/global/GlobalStyle";
import { GTextFiled } from "../../../../../com/mui/controls/GTextFiled";
//class FireTip
    
    export  class FireTip extends GSprite
    {
        constructor()
        {
            super();
            return;
        }

        protected /* override */ createDisposedChildrenImpl(): void
        {
            this.mouseChildren = false;
            this.mouseEnabled = false;
            this._bmpFire = ObjCreate.createBitmap(ImagesConst.Fire, 0, 0, this);
            this._tfTip = ObjCreate.createGTextField("", 21, 7, -1, 20, this, GlobalStyle.textFormat1);
            this._tfTip.autoSize = flash.text.TextFieldAutoSize.LEFT;
            super.createDisposedChildrenImpl();
            return;
        }

        protected /* override */ disposeImpl(arg1: Boolean=true): void
        {
            ObjCreate.disposeBitmap(this._bmpFire);
            this._tfTip.dispose();
            this._bmpFire = null;
            this._tfTip = null;
            super.disposeImpl(arg1);
            return;
        }

        public set text(arg1: string)
        {
            this._tfTip.text = arg1;
            return;
        }

        public set htmlText(arg1: string)
        {
            this._tfTip.htmlText = arg1;
            return;
        }

        /* internal */ /* var */_bmpFire: Object /* flash.display.Bitmap */;

        /* internal */ /* var */_tfTip: GTextFiled;
    }
